import http from '@/utils/http'
//获取用户列表
export const getListApi = async(parm) => {
  return http.get('/api/role/list', parm)
}
//新增
export const addRoleApi = async(parm) => {
  return http.post('/api/role', parm)
}
//编辑
export const editRoleApi = async(parm) => {
  return http.put('/api/role', parm)
}
//删除
export const deleteRoleApi = async(parm) => {
  return await http.delete('/api/role', parm)
}

//菜单权限树
export const getAssignShowApi = async(parm) => {
  return http.get('/api/role/getAssignShow', parm)
}

//保存角色分配权限
export const saveAssignApi = async(parm) => {
  return http.post('/api/role/assignSave', parm)
}

